package cn.bon.user.controller;

import cn.bon.common.tool.RedisUtils;
import cn.bon.emp.api.client.EmpClient;
import cn.bon.emp.api.pojo.po.EmpSkill;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: dronff
 * @description:
 * @CreateTime: 2023/12/9 10:12
 **/
@RestController
public class TestController {
    @Resource
    private EmpClient empClient;
    @GetMapping("/test")
    public List<EmpSkill> test(){
        RedisUtils.set("hello","world");
        return empClient.skills().getData();
    }
}
